home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-04-07 | 4.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 05 43 6c 61 73 73 03 41 | 70 70 a0 02 3f ad 09 8e |.Class.A|pp..?...|
|00000010| 06 07 00 03 41 70 70 20 | 0b 41 70 70 6c 69 63 61 |....App |.Applica|
|00000020| 74 69 6f 6e 00 13 18 66 | 6f 72 6d 5f 61 72 67 73 |tion...f|orm_args|
|00000030| 28 30 2c 31 29 20 61 73 | 20 73 74 72 69 6e 67 00 |(0,1) as| string.|
|00000040| 1a 73 65 61 72 63 68 5f | 61 72 67 73 28 30 2c 31 |.search_|args(0,1|
|00000050| 29 20 61 73 20 73 74 72 | 69 6e 67 00 10 68 65 61 |) as str|ing..hea|
|00000060| 64 65 72 20 61 73 20 73 | 74 72 69 6e 67 00 12 72 |der as s|tring..r|
|00000070| 65 64 69 72 65 63 74 20 | 61 73 20 73 74 72 69 6e |edirect |as strin|
|00000080| 67 00 0e 75 73 65 72 20 | 61 73 20 73 74 72 69 6e |g..user |as strin|
|00000090| 67 00 0e 70 61 73 73 20 | 61 73 20 73 74 72 69 6e |g..pass |as strin|
|000000a0| 67 00 10 63 6c 69 65 6e | 74 20 61 73 20 73 74 72 |g..clien|t as str|
|000000b0| 69 6e 67 00 10 73 65 72 | 76 65 72 20 61 73 20 73 |ing..ser|ver as s|
|000000c0| 74 72 69 6e 67 00 0e 70 | 6f 72 74 20 61 73 20 73 |tring..p|ort as s|
|000000d0| 74 72 69 6e 67 00 0e 70 | 61 74 68 20 61 73 20 73 |tring..p|ath as s|
|000000e0| 74 72 69 6e 67 00 0f 72 | 65 66 65 72 20 61 73 20 |tring..r|efer as |
|000000f0| 73 74 72 69 6e 67 00 0e | 74 79 70 65 20 61 73 20 |string..|type as |
|00000100| 73 74 72 69 6e 67 00 10 | 61 63 74 69 6f 6e 20 61 |string..|action a|
|00000110| 73 20 73 74 72 69 6e 67 | 00 15 61 63 74 69 6f 6e |s string|..action|
|00000120| 5f 70 61 74 68 20 61 73 | 20 73 74 72 69 6e 67 00 |_path as| string.|
|00000130| 10 6d 65 74 68 6f 64 20 | 61 73 20 73 74 72 69 6e |.method |as strin|
|00000140| 67 00 13 63 6c 69 65 6e | 74 5f 69 70 20 61 73 20 |g..clien|t_ip as |
|00000150| 73 74 72 69 6e 67 00 0c | 49 44 20 61 73 20 73 74 |string..|ID as st|
|00000160| 72 69 6e 67 00 13 70 61 | 74 68 5f 61 72 67 73 20 |ring..pa|th_args |
|00000170| 61 73 20 73 74 72 69 6e | 67 00 0e 66 75 6c 6c 20 |as strin|g..full |
|00000180| 61 73 20 73 74 72 69 6e | 67 00 07 0a 43 6f 6e 76 |as strin|g...Conv|
|00000190| 65 72 74 48 65 78 0f 61 | 5f 73 74 72 20 61 73 20 |ertHex.a|_str as |
|000001a0| 73 74 72 69 6e 67 06 73 | 74 72 69 6e 67 00 01 00 |string.s|tring...|
|000001b0| 01 81 01 03 2e 46 75 6e | 63 74 69 6f 6e 20 43 6f |.....Fun|ction Co|
|000001c0| 6e 76 65 72 74 48 65 78 | 28 61 5f 73 74 72 20 61 |nvertHex|(a_str a|
|000001d0| 73 20 73 74 72 69 6e 67 | 29 20 41 73 20 73 74 72 |s string|) As str|
|000001e0| 69 6e 67 81 01 72 65 74 | 75 72 6e 20 43 68 72 28 |ing..ret|urn Chr(|
|000001f0| 28 48 65 78 32 56 61 6c | 28 4c 65 66 74 28 61 5f |(Hex2Val|(Left(a_|
|00000200| 73 74 72 2c 20 31 29 29 | 2a 31 36 29 2b 48 65 78 |str, 1))|*16)+Hex|
|00000210| 32 56 61 6c 28 52 69 67 | 68 74 28 61 5f 73 74 72 |2Val(Rig|ht(a_str|
|00000220| 2c 20 31 29 29 29 0c 45 | 6e 64 20 46 75 6e 63 74 |, 1))).E|nd Funct|
|00000230| 69 6f 6e 0b 43 6f 6e 76 | 65 72 74 50 6c 75 73 13 |ion.Conv|ertPlus.|
|00000240| 74 68 65 5f 66 69 65 6c | 64 20 61 73 20 73 74 72 |the_fiel|d as str|
|00000250| 69 6e 67 06 73 74 72 69 | 6e 67 00 01 00 0f 0f 11 |ing.stri|ng......|
|00000260| 33 46 75 6e 63 74 69 6f | 6e 20 43 6f 6e 76 65 72 |3Functio|n Conver|
|00000270| 74 50 6c 75 73 28 74 68 | 65 5f 66 69 65 6c 64 20 |tPlus(th|e_field |
|00000280| 61 73 20 73 74 72 69 6e | 67 29 20 41 73 20 73 74 |as strin|g) As st|
|00000290| 72 69 6e 67 13 44 69 6d | 20 61 5f 68 65 78 20 61 |ring.Dim| a_hex a|
|000002a0| 73 20 73 74 72 69 6e 67 | 15 44 69 6d 20 61 5f 64 |s string|.Dim a_d|
|000002b0| 65 68 65 78 20 61 73 20 | 73 74 72 69 6e 67 16 44 |ehex as |string.D|
|000002c0| 69 6d 20 61 5f 64 65 70 | 6c 75 73 20 61 73 20 73 |im a_dep|lus as s|
|000002d0| 74 72 69 6e 67 16 44 69 | 6d 20 6c 6f 63 5f 68 65 |tring.Di|m loc_he|
|000002e0| 78 20 61 73 20 69 6e 74 | 65 67 65 72 28 61 5f 64 |x as int|eger(a_d|
|000002f0| 65 70 6c 75 73 3d 52 65 | 70 6c 61 63 65 41 6c 6c |eplus=Re|placeAll|
|00000300| 28 74 68 65 5f 66 69 65 | 6c 64 2c 20 22 2b 22 2c |(the_fie|ld, "+",|
|00000310| 20 22 20 22 29 1c 6c 6f | 63 5f 68 65 78 3d 69 6e | " ").lo|c_hex=in|
|00000320| 53 74 72 28 61 5f 64 65 | 70 6c 75 73 2c 20 22 25 |Str(a_de|plus, "%|
|00000330| 22 29 11 49 66 20 6c 6f | 63 5f 68 65 78 3e 30 20 |").If lo|c_hex>0 |
|00000340| 74 68 65 6e 0f 57 68 69 | 6c 65 20 6c 6f 63 5f 68 |then.Whi|le loc_h|
|00000350| 65 78 3e 30 21 61 5f 68 | 65 78 3d 4d 69 64 28 61 |ex>0!a_h|ex=Mid(a|
|00000360| 5f 64 65 70 6c 75 73 2c | 20 6c 6f 63 5f 68 65 78 |_deplus,| loc_hex|
|00000370| 2b 31 2c 20 32 29 19 61 | 5f 64 65 68 65 78 3d 43 |+1, 2).a|_dehex=C|
|00000380| 6f 6e 76 65 72 74 48 65 | 78 28 61 5f 68 65 78 29 |onvertHe|x(a_hex)|
|00000390| 31 61 5f 64 65 70 6c 75 | 73 3d 52 65 70 6c 61 63 |1a_deplu|s=Replac|
|000003a0| 65 41 6c 6c 28 61 5f 64 | 65 70 6c 75 73 2c 20 22 |eAll(a_d|eplus, "|
|000003b0| 25 22 2b 61 5f 68 65 78 | 2c 20 61 5f 64 65 68 65 |%"+a_hex|, a_dehe|
|000003c0| 78 29 1c 6c 6f 63 5f 68 | 65 78 3d 69 6e 53 74 72 |x).loc_h|ex=inStr|
|000003d0| 28 61 5f 64 65 70 6c 75 | 73 2c 20 22 25 22 29 05 |(a_deplu|s, "%").|
|000003e0| 57 65 6e 64 20 06 65 6e | 64 20 69 66 0f 72 65 74 |Wend .en|d if.ret|
|000003f0| 75 72 6e 20 61 5f 64 65 | 70 6c 75 73 0c 45 6e 64 |urn a_de|plus.End|
|00000400| 20 46 75 6e 63 74 69 6f | 6e 07 48 65 78 32 56 61 | Functio|n.Hex2Va|
|00000410| 6c 13 68 65 78 53 74 72 | 69 6e 67 20 61 73 20 73 |l.hexStr|ing as s|
|00000420| 74 72 69 6e 67 07 69 6e | 74 65 67 65 72 00 26 0a |tring.in|teger.&.|
|00000430| 26 0a 28 30 46 75 6e 63 | 74 69 6f 6e 20 48 65 78 |&.(0Func|tion Hex|
|00000440| 32 56 61 6c 28 68 65 78 | 53 74 72 69 6e 67 20 61 |2Val(hex|String a|
|00000450| 73 20 73 74 72 69 6e 67 | 29 20 41 73 20 69 6e 74 |s string|) As int|
|00000460| 65 67 65 72 20 53 65 6c | 65 63 74 20 43 61 73 65 |eger Sel|ect Case|
|00000470| 20 55 70 70 65 72 63 61 | 73 65 28 68 65 78 53 74 | Upperca|se(hexSt|
|00000480| 72 69 6e 67 29 08 43 61 | 73 65 20 22 30 22 08 72 |ring).Ca|se "0".r|
|00000490| 65 74 75 72 6e 20 30 08 | 43 61 73 65 20 22 31 22 |eturn 0.|Case "1"|
|000004a0| 08 72 65 74 75 72 6e 20 | 31 08 43 61 73 65 20 22 |.return |1.Case "|
|000004b0| 32 22 08 72 65 74 75 72 | 6e 20 32 08 43 61 73 65 |2".retur|n 2.Case|
|000004c0| 20 22 33 22 08 72 65 74 | 75 72 6e 20 33 08 43 61 | "3".ret|urn 3.Ca|
|000004d0| 73 65 20 22 34 22 08 72 | 65 74 75 72 6e 20 34 08 |se "4".r|eturn 4.|
|000004e0| 43 61 73 65 20 22 35 22 | 08 72 65 74 75 72 6e 20 |Case "5"|.return |
|000004f0| 35 08 43 61 73 65 20 22 | 36 22 08 72 65 74 75 72 |5.Case "|6".retur|
|00000500| 6e 20 36 08 43 61 73 65 | 20 22 36 22 08 72 65 74 |n 6.Case| "6".ret|
|00000510| 75 72 6e 20 36 08 43 61 | 73 65 20 22 37 22 08 72 |urn 6.Ca|se "7".r|
|00000520| 65 74 75 72 6e 20 37 08 | 43 61 73 65 20 22 38 22 |eturn 7.|Case "8"|
|00000530| 08 72 65 74 75 72 6e 20 | 38 08 43 61 73 65 20 22 |.return |8.Case "|
|00000540| 39 22 08 72 65 74 75 72 | 6e 20 39 08 43 61 73 65 |9".retur|n 9.Case|
|00000550| 20 22 41 22 09 72 65 74 | 75 72 6e 20 31 30 08 43 | "A".ret|urn 10.C|
|00000560| 61 73 65 20 22 42 22 09 | 72 65 74 75 72 6e 20 31 |ase "B".|return 1|
|00000570| 31 08 43 61 73 65 20 22 | 43 22 09 72 65 74 75 72 |1.Case "|C".retur|
|00000580| 6e 20 31 32 08 43 61 73 | 65 20 22 44 22 09 72 65 |n 12.Cas|e "D".re|
|00000590| 74 75 72 6e 20 31 33 08 | 43 61 73 65 20 22 45 22 |turn 13.|Case "E"|
|000005a0| 09 72 65 74 75 72 6e 20 | 31 34 08 43 61 73 65 20 |.return |14.Case |
|000005b0| 22 46 22 09 72 65 74 75 | 72 6e 20 31 35 04 45 6c |"F".retu|rn 15.El|
|000005c0| 73 65 15 72 65 74 75 72 | 6e 20 56 61 6c 28 68 65 |se.retur|n Val(he|
|000005d0| 78 53 74 72 69 6e 67 29 | 0a 45 6e 64 20 53 65 6c |xString)|.End Sel|
|000005e0| 65 63 74 0c 45 6e 64 20 | 46 75 6e 63 74 69 6f 6e |ect.End |Function|
|000005f0| 05 66 69 65 6c 64 12 74 | 68 65 5f 6e 61 6d 65 20 |.field.t|he_name |
|00000600| 61 73 20 73 74 72 69 6e | 67 06 53 74 72 69 6e 67 |as strin|g.String|
|00000610| 00 06 15 06 15 12 2c 46 | 75 6e 63 74 69 6f 6e 20 |......,F|unction |
|00000620| 66 69 65 6c 64 28 74 68 | 65 5f 6e 61 6d 65 20 61 |field(th|e_name a|
|00000630| 73 20 73 74 72 69 6e 67 | 29 20 41 73 20 53 74 72 |s string|) As Str|
|00000640| 69 6e 67 24 52 65 6d 20 | 52 65 74 75 72 6e 20 66 |ing$Rem |Return f|
|00000650| 69 65 6c 64 20 76 61 6c | 75 65 20 62 61 73 65 64 |ield val|ue based|
|00000660| 20 6f 6e 20 6e 61 6d 65 | 1b 44 69 6d 20 78 2c 20 | on name|.Dim x, |
|00000670| 6e 75 6d 66 69 65 6c 64 | 73 20 61 73 20 69 6e 74 |numfield|s as int|
|00000680| 65 67 65 72 00 1d 6e 75 | 6d 66 69 65 6c 64 73 3d |eger..nu|mfields=|
|00000690| 55 42 6f 75 6e 64 28 73 | 65 61 72 63 68 5f 61 72 |UBound(s|earch_ar|
|000006a0| 67 73 29 14 46 6f 72 20 | 78 3d 30 20 74 6f 20 6e |gs).For |x=0 to n|
|000006b0| 75 6d 66 69 65 6c 64 73 | 22 69 66 20 73 65 61 72 |umfields|"if sear|
|000006c0| 63 68 5f 61 72 67 73 28 | 78 2c 20 30 29 3d 74 68 |ch_args(|x, 0)=th|
|000006d0| 65 5f 6e 61 6d 65 20 74 | 68 65 6e 18 72 65 74 75 |e_name t|hen.retu|
|000006e0| 72 6e 20 73 65 61 72 63 | 68 5f 61 72 67 73 28 78 |rn searc|h_args(x|
|000006f0| 2c 20 31 29 06 65 6e 64 | 20 69 66 04 4e 65 78 74 |, 1).end| if.Next|
|00000700| 00 1b 6e 75 6d 66 69 65 | 6c 64 73 3d 55 42 6f 75 |..numfie|lds=UBou|
|00000710| 6e 64 28 66 6f 72 6d 5f | 61 72 67 73 29 14 46 6f |nd(form_|args).Fo|
|00000720| 72 20 78 3d 30 20 74 6f | 20 6e 75 6d 66 69 65 6c |r x=0 to| numfiel|
|00000730| 64 73 20 69 66 20 66 6f | 72 6d 5f 61 72 67 73 28 |ds if fo|rm_args(|
|00000740| 78 2c 20 30 29 3d 74 68 | 65 5f 6e 61 6d 65 20 74 |x, 0)=th|e_name t|
|00000750| 68 65 6e 16 72 65 74 75 | 72 6e 20 66 6f 72 6d 5f |hen.retu|rn form_|
|00000760| 61 72 67 73 28 78 2c 20 | 31 29 06 65 6e 64 20 69 |args(x, |1).end i|
|00000770| 66 04 4e 65 78 74 0c 45 | 6e 64 20 46 75 6e 63 74 |f.Next.E|nd Funct|
|00000780| 69 6f 6e 03 6e 75 6d 0c | 78 20 61 73 20 69 6e 74 |ion.num.|x as int|
|00000790| 65 67 65 72 06 73 74 72 | 69 6e 67 00 02 16 01 00 |eger.str|ing.....|
|000007a0| 04 24 46 75 6e 63 74 69 | 6f 6e 20 6e 75 6d 28 78 |.$Functi|on num(x|
|000007b0| 20 61 73 20 69 6e 74 65 | 67 65 72 29 20 41 73 20 | as inte|ger) As |
|000007c0| 73 74 72 69 6e 67 26 52 | 65 6d 20 52 65 74 75 72 |string&R|em Retur|
|000007d0| 6e 20 66 69 65 6c 64 20 | 76 61 6c 75 65 20 62 61 |n field |value ba|
|000007e0| 73 65 64 20 6f 6e 20 6e | 75 6d 62 65 72 16 72 65 |sed on n|umber.re|
|000007f0| 74 75 72 6e 20 66 6f 72 | 6d 5f 61 72 67 73 28 78 |turn for|m_args(x|
|00000800| 2c 20 31 29 0c 45 6e 64 | 20 46 75 6e 63 74 69 6f |, 1).End| Functio|
|00000810| 6e 05 63 6f 75 6e 74 00 | 07 49 6e 74 65 67 65 72 |n.count.|.Integer|
|00000820| 00 01 00 01 1a 03 1b 46 | 75 6e 63 74 69 6f 6e 20 |.......F|unction |
|00000830| 63 6f 75 6e 74 28 29 20 | 41 73 20 49 6e 74 65 67 |count() |As Integ|
|00000840| 65 72 1a 72 65 74 75 72 | 6e 20 55 42 6f 75 6e 64 |er.retur|n UBound|
|00000850| 28 66 6f 72 6d 5f 61 72 | 67 73 29 2b 31 0c 45 6e |(form_ar|gs)+1.En|
|00000860| 64 20 46 75 6e 63 74 69 | 6f 6e 05 6c 61 62 65 6c |d Functi|on.label|
|00000870| 0c 78 20 61 73 20 69 6e | 74 65 67 65 72 06 73 74 |.x as in|teger.st|
|00000880| 72 69 6e 67 00 01 10 01 | 10 04 26 46 75 6e 63 74 |ring....|..&Funct|
|00000890| 69 6f 6e 20 6c 61 62 65 | 6c 28 78 20 61 73 20 69 |ion labe|l(x as i|
|000008a0| 6e 74 65 67 65 72 29 20 | 41 73 20 73 74 72 69 6e |nteger) |As strin|
|000008b0| 67 20 52 65 6d 20 52 65 | 74 75 72 6e 20 6c 61 62 |g Rem Re|turn lab|
|000008c0| 65 6c 20 62 61 73 65 64 | 20 6f 6e 20 6e 75 6d 62 |el based| on numb|
|000008d0| 65 72 16 72 65 74 75 72 | 6e 20 66 6f 72 6d 5f 61 |er.retur|n form_a|
|000008e0| 72 67 73 28 78 2c 20 30 | 29 0c 45 6e 64 20 46 75 |rgs(x, 0|).End Fu|
|000008f0| 6e 63 74 69 6f 6e 00 06 | 0b 4e 65 77 44 6f 63 75 |nction..|.NewDocu|
|00000900| 6d 65 6e 74 01 00 01 00 | 03 11 53 75 62 20 4e 65 |ment....|..Sub Ne|
|00000910| 77 44 6f 63 75 6d 65 6e | 74 28 29 00 07 45 6e 64 |wDocumen|t()..End|
|00000920| 20 53 75 62 0f 45 6e 61 | 62 6c 65 4d 65 6e 75 49 | Sub.Ena|bleMenuI|
|00000930| 74 65 6d 73 01 00 01 00 | 03 15 53 75 62 20 45 6e |tems....|..Sub En|
|00000940| 61 62 6c 65 4d 65 6e 75 | 49 74 65 6d 73 28 29 00 |ableMenu|Items().|
|00000950| 07 45 6e 64 20 53 75 62 | 05 43 6c 6f 73 65 01 00 |.End Sub|.Close..|
|00000960| 01 00 03 0b 53 75 62 20 | 43 6c 6f 73 65 28 29 00 |....Sub |Close().|
|00000970| 07 45 6e 64 20 53 75 62 | 04 4f 70 65 6e 01 00 01 |.End Sub|.Open...|
|00000980| 00 03 0a 53 75 62 20 4f | 70 65 6e 28 29 00 07 45 |...Sub O|pen()..E|
|00000990| 6e 64 20 53 75 62 0c 4f | 70 65 6e 44 6f 63 75 6d |nd Sub.O|penDocum|
|000009a0| 65 6e 74 01 00 01 00 03 | 24 53 75 62 20 4f 70 65 |ent.....|$Sub Ope|
|000009b0| 6e 44 6f 63 75 6d 65 6e | 74 28 69 74 65 6d 20 41 |nDocumen|t(item A|
|000009c0| 73 20 46 6f 6c 64 65 72 | 49 74 65 6d 29 00 07 45 |s Folder|Item)..E|
|000009d0| 6e 64 20 53 75 62 10 48 | 61 6e 64 6c 65 41 70 70 |nd Sub.H|andleApp|
|000009e0| 6c 65 45 76 65 6e 74 11 | 06 11 06 87 01 a2 01 46 |leEvent.|.......F|
|000009f0| 75 6e 63 74 69 6f 6e 20 | 48 61 6e 64 6c 65 41 70 |unction |HandleAp|
|00000a00| 70 6c 65 45 76 65 6e 74 | 28 65 76 65 6e 74 20 41 |pleEvent|(event A|
|00000a10| 73 20 41 70 70 6c 65 45 | 76 65 6e 74 2c 20 65 76 |s AppleE|vent, ev|
|00000a20| 65 6e 74 43 6c 61 73 73 | 20 41 73 20 53 74 72 69 |entClass| As Stri|
|00000a30| 6e 67 2c 20 65 76 65 6e | 74 49 44 20 41 73 20 53 |ng, even|tID As S|
|00000a40| 74 72 69 6e 67 29 20 41 | 73 20 42 6f 6f 6c 65 61 |tring) A|s Boolea|
|00000a50| 6e 00 3e 44 69 6d 20 61 | 72 67 73 2c 20 70 61 69 |n.>Dim a|rgs, pai|
|00000a60| 72 2c 20 66 69 65 6c 64 | 5f 6c 61 62 65 6c 2c 20 |r, field|_label, |
|00000a70| 66 69 65 6c 64 5f 76 61 | 6c 75 65 2c 20 63 72 6c |field_va|lue, crl|
|00000a80| 66 2c 20 68 65 61 64 20 | 61 73 20 73 74 72 69 6e |f, head |as strin|
|00000a90| 67 1c 44 69 6d 20 78 2c | 20 6e 75 6d 5f 66 69 65 |g.Dim x,| num_fie|
|00000aa0| 6c 64 73 20 61 73 20 69 | 6e 74 65 67 65 72 00 2b |lds as i|nteger.+|
|00000ab0| 52 65 6d 20 76 65 72 69 | 66 79 20 61 70 70 6c 65 |Rem veri|fy apple|
|00000ac0| 20 65 76 65 6e 74 20 69 | 73 20 61 70 70 72 6f 70 | event i|s approp|
|00000ad0| 72 69 61 74 65 20 74 79 | 70 65 2e 2c 69 66 20 65 |riate ty|pe.,if e|
|00000ae0| 76 65 6e 74 43 6c 61 73 | 73 3d 22 57 57 57 bd 22 |ventClas|s="WWW."|
|00000af0| 20 61 6e 64 20 65 76 65 | 6e 74 49 44 3d 22 73 64 | and eve|ntID="sd|
|00000b00| 6f 63 22 20 74 68 65 6e | 00 1c 52 65 6d 20 70 72 |oc" then|..Rem pr|
|00000b10| 65 73 65 72 76 65 20 6f | 74 68 65 72 20 61 72 67 |eserve o|ther arg|
|00000b20| 75 6d 65 6e 74 73 1e 75 | 73 65 72 3d 65 76 65 6e |uments.u|ser=even|
|00000b30| 74 2e 53 74 72 69 6e 67 | 70 61 72 61 6d 28 22 75 |t.String|param("u|
|00000b40| 73 65 72 22 29 1e 70 61 | 73 73 3d 65 76 65 6e 74 |ser").pa|ss=event|
|00000b50| 2e 53 74 72 69 6e 67 70 | 61 72 61 6d 28 22 70 61 |.Stringp|aram("pa|
|00000b60| 73 73 22 29 20 63 6c 69 | 65 6e 74 3d 65 76 65 6e |ss") cli|ent=even|
|00000b70| 74 2e 53 74 72 69 6e 67 | 70 61 72 61 6d 28 22 61 |t.String|param("a|
|00000b80| 64 64 72 22 29 1e 70 6f | 72 74 3d 65 76 65 6e 74 |ddr").po|rt=event|
|00000b90| 2e 53 74 72 69 6e 67 70 | 61 72 61 6d 28 22 70 6f |.Stringp|aram("po|
|00000ba0| 72 74 22 29 1e 70 61 74 | 68 3d 65 76 65 6e 74 2e |rt").pat|h=event.|
|00000bb0| 53 74 72 69 6e 67 70 61 | 72 61 6d 28 22 73 63 6e |Stringpa|ram("scn|
|00000bc0| 6d 22 29 1f 72 65 66 65 | 72 3d 65 76 65 6e 74 2e |m").refe|r=event.|
|00000bd0| 53 74 72 69 6e 67 70 61 | 72 61 6d 28 22 72 65 66 |Stringpa|ram("ref|
|00000be0| 72 22 29 1e 74 79 70 65 | 3d 65 76 65 6e 74 2e 53 |r").type|=event.S|
|00000bf0| 74 72 69 6e 67 70 61 72 | 61 6d 28 22 63 74 79 70 |tringpar|am("ctyp|
|00000c00| 22 29 20 61 63 74 69 6f | 6e 3d 65 76 65 6e 74 2e |") actio|n=event.|
|00000c10| 53 74 72 69 6e 67 70 61 | 72 61 6d 28 22 4b 61 63 |Stringpa|ram("Kac|
|00000c20| 74 22 29 25 61 63 74 69 | 6f 6e 5f 70 61 74 68 3d |t")%acti|on_path=|
|00000c30| 65 76 65 6e 74 2e 53 74 | 72 69 6e 67 70 61 72 61 |event.St|ringpara|
|00000c40| 6d 28 22 4b 61 70 74 22 | 29 20 6d 65 74 68 6f 64 |m("Kapt"|) method|
|00000c50| 3d 65 76 65 6e 74 2e 53 | 74 72 69 6e 67 70 61 72 |=event.S|tringpar|
|00000c60| 61 6d 28 22 6d 65 74 68 | 22 29 23 63 6c 69 65 6e |am("meth|")#clien|
|00000c70| 74 5f 69 70 3d 65 76 65 | 6e 74 2e 53 74 72 69 6e |t_ip=eve|nt.Strin|
|00000c80| 67 70 61 72 61 6d 28 22 | 4b 63 69 70 22 29 1c 49 |gparam("|Kcip").I|
|00000c90| 44 3d 65 76 65 6e 74 2e | 53 74 72 69 6e 67 70 61 |D=event.|Stringpa|
|00000ca0| 72 61 6d 28 22 4b 63 69 | 64 22 29 23 70 61 74 68 |ram("Kci|d")#path|
|00000cb0| 5f 61 72 67 73 3d 65 76 | 65 6e 74 2e 53 74 72 69 |_args=ev|ent.Stri|
|00000cc0| 6e 67 70 61 72 61 6d 28 | 22 2d 2d 2d 2d 22 29 1e |ngparam(|"----").|
|00000cd0| 66 75 6c 6c 3d 65 76 65 | 6e 74 2e 53 74 72 69 6e |full=eve|nt.Strin|
|00000ce0| 67 70 61 72 61 6d 28 22 | 4b 66 72 71 22 29 00 13 |gparam("|Kfrq")..|
|00000cf0| 52 65 6d 20 50 61 72 73 | 65 20 66 6f 72 6d 20 61 |Rem Pars|e form a|
|00000d00| 72 67 73 1e 61 72 67 73 | 3d 65 76 65 6e 74 2e 53 |rgs.args|=event.S|
|00000d10| 74 72 69 6e 67 70 61 72 | 61 6d 28 22 70 6f 73 74 |tringpar|am("post|
|00000d20| 22 29 21 6e 75 6d 5f 66 | 69 65 6c 64 73 3d 43 6f |")!num_f|ields=Co|
|00000d30| 75 6e 74 46 69 65 6c 64 | 73 28 61 72 67 73 2c 20 |untField|s(args, |
|00000d40| 22 26 22 29 20 52 65 64 | 69 6d 20 66 6f 72 6d 5f |"&") Red|im form_|
|00000d50| 61 72 67 73 28 6e 75 6d | 5f 66 69 65 6c 64 73 2d |args(num|_fields-|
|00000d60| 31 2c 20 31 29 15 46 6f | 72 20 78 3d 31 20 74 6f |1, 1).Fo|r x=1 to|
|00000d70| 20 6e 75 6d 5f 66 69 65 | 6c 64 73 1b 70 61 69 72 | num_fie|lds.pair|
|00000d80| 3d 4e 74 68 46 69 65 6c | 64 28 61 72 67 73 2c 20 |=NthFiel|d(args, |
|00000d90| 22 26 22 2c 20 78 29 22 | 66 69 65 6c 64 5f 6c 61 |"&", x)"|field_la|
|00000da0| 62 65 6c 3d 4e 74 68 46 | 69 65 6c 64 28 70 61 69 |bel=NthF|ield(pai|
|00000db0| 72 2c 20 22 3d 22 2c 20 | 31 29 22 66 69 65 6c 64 |r, "=", |1)"field|
|00000dc0| 5f 76 61 6c 75 65 3d 4e | 74 68 46 69 65 6c 64 28 |_value=N|thField(|
|00000dd0| 70 61 69 72 2c 20 22 3d | 22 2c 20 32 29 24 66 69 |pair, "=|", 2)$fi|
|00000de0| 65 6c 64 5f 6c 61 62 65 | 6c 3d 43 6f 6e 76 65 72 |eld_labe|l=Conver|
|00000df0| 74 50 6c 75 73 28 66 69 | 65 6c 64 5f 6c 61 62 65 |tPlus(fi|eld_labe|
|00000e00| 6c 29 24 66 69 65 6c 64 | 5f 76 61 6c 75 65 3d 43 |l)$field|_value=C|
|00000e10| 6f 6e 76 65 72 74 50 6c | 75 73 28 66 69 65 6c 64 |onvertPl|us(field|
|00000e20| 5f 76 61 6c 75 65 29 1d | 66 6f 72 6d 5f 61 72 67 |_value).|form_arg|
|00000e30| 73 28 78 2d 31 2c 20 30 | 29 3d 66 69 65 6c 64 5f |s(x-1, 0|)=field_|
|00000e40| 6c 61 62 65 6c 1d 66 6f | 72 6d 5f 61 72 67 73 28 |label.fo|rm_args(|
|00000e50| 78 2d 31 2c 20 31 29 3d | 66 69 65 6c 64 5f 76 61 |x-1, 1)=|field_va|
|00000e60| 6c 75 65 04 4e 65 78 74 | 00 15 52 65 6d 20 50 61 |lue.Next|..Rem Pa|
|00000e70| 72 73 65 20 73 65 61 72 | 63 68 20 61 72 67 73 1e |rse sear|ch args.|
|00000e80| 61 72 67 73 3d 65 76 65 | 6e 74 2e 53 74 72 69 6e |args=eve|nt.Strin|
|00000e90| 67 70 61 72 61 6d 28 22 | 6b 66 6f 72 22 29 21 6e |gparam("|kfor")!n|
|00000ea0| 75 6d 5f 66 69 65 6c 64 | 73 3d 43 6f 75 6e 74 46 |um_field|s=CountF|
|00000eb0| 69 65 6c 64 73 28 61 72 | 67 73 2c 20 22 26 22 29 |ields(ar|gs, "&")|
|00000ec0| 22 52 65 64 69 6d 20 73 | 65 61 72 63 68 5f 61 72 |"Redim s|earch_ar|
|00000ed0| 67 73 28 6e 75 6d 5f 66 | 69 65 6c 64 73 2d 31 2c |gs(num_f|ields-1,|
|00000ee0| 20 31 29 15 46 6f 72 20 | 78 3d 31 20 74 6f 20 6e | 1).For |x=1 to n|
|00000ef0| 75 6d 5f 66 69 65 6c 64 | 73 1b 70 61 69 72 3d 4e |um_field|s.pair=N|
|00000f00| 74 68 46 69 65 6c 64 28 | 61 72 67 73 2c 20 22 26 |thField(|args, "&|
|00000f10| 22 2c 20 78 29 22 66 69 | 65 6c 64 5f 6c 61 62 65 |", x)"fi|eld_labe|
|00000f20| 6c 3d 4e 74 68 46 69 65 | 6c 64 28 70 61 69 72 2c |l=NthFie|ld(pair,|
|00000f30| 20 22 3d 22 2c 20 31 29 | 22 66 69 65 6c 64 5f 76 | "=", 1)|"field_v|
|00000f40| 61 6c 75 65 3d 4e 74 68 | 46 69 65 6c 64 28 70 61 |alue=Nth|Field(pa|
|00000f50| 69 72 2c 20 22 3d 22 2c | 20 32 29 24 66 69 65 6c |ir, "=",| 2)$fiel|
|00000f60| 64 5f 6c 61 62 65 6c 3d | 43 6f 6e 76 65 72 74 50 |d_label=|ConvertP|
|00000f70| 6c 75 73 28 66 69 65 6c | 64 5f 6c 61 62 65 6c 29 |lus(fiel|d_label)|
|00000f80| 24 66 69 65 6c 64 5f 76 | 61 6c 75 65 3d 43 6f 6e |$field_v|alue=Con|
|00000f90| 76 65 72 74 50 6c 75 73 | 28 66 69 65 6c 64 5f 76 |vertPlus|(field_v|
|00000fa0| 61 6c 75 65 29 1f 73 65 | 61 72 63 68 5f 61 72 67 |alue).se|arch_arg|
|00000fb0| 73 28 78 2d 31 2c 20 30 | 29 3d 66 69 65 6c 64 5f |s(x-1, 0|)=field_|
|00000fc0| 6c 61 62 65 6c 1f 73 65 | 61 72 63 68 5f 61 72 67 |label.se|arch_arg|
|00000fd0| 73 28 78 2d 31 2c 20 31 | 29 3d 66 69 65 6c 64 5f |s(x-1, 1|)=field_|
|00000fe0| 76 61 6c 75 65 04 4e 65 | 78 74 00 1e 52 65 6d 20 |value.Ne|xt..Rem |
|00000ff0| 41 74 74 61 63 68 20 61 | 70 70 72 6f 70 72 69 61 |Attach a|ppropria|
|00001000| 74 65 20 68 65 61 64 65 | 72 2e 14 63 72 6c 66 3d |te heade|r..crlf=|
|00001010| 63 68 72 28 31 33 29 2b | 63 68 72 28 31 30 29 00 |chr(13)+|chr(10).|
|00001020| 19 69 66 20 68 65 61 64 | 65 72 3d 22 72 65 64 69 |.if head|er="redi|
|00001030| 72 65 63 74 22 20 74 68 | 65 6e 3a 68 65 61 64 3d |rect" th|en:head=|
|00001040| 22 48 54 54 50 2f 31 2e | 30 20 33 30 32 20 46 6f |"HTTP/1.|0 302 Fo|
|00001050| 75 6e 64 22 20 2b 20 63 | 72 6c 66 20 2b 20 22 4c |und" + c|rlf + "L|
|00001060| 6f 63 61 74 69 6f 6e 3a | 20 22 20 2b 20 72 65 64 |ocation:| " + red|
|00001070| 69 72 65 63 74 04 65 6c | 73 65 18 69 66 20 68 65 |irect.el|se.if he|
|00001080| 61 64 65 72 3d 22 67 72 | 61 70 68 69 63 22 20 74 |ader="gr|aphic" t|
|00001090| 68 65 6e 8c 02 68 65 61 | 64 3d 22 48 54 54 50 2f |hen..hea|d="HTTP/|
|000010a0| 31 2e 30 20 32 30 30 20 | 4f 4b 22 20 2b 20 63 72 |1.0 200 |OK" + cr|
|000010b0| 6c 66 20 2b 20 22 53 65 | 72 76 65 72 3a 20 57 65 |lf + "Se|rver: We|
|000010c0| 62 53 54 41 52 2f 32 2e | 30 20 49 44 2f 41 43 47 |bSTAR/2.|0 ID/ACG|
|000010d0| 49 22 20 2b 20 63 72 6c | 66 20 2b 20 22 4d 49 4d |I" + crl|f + "MIM|
|000010e0| 45 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 22 20 |E-Versio|n: 1.0" |
|000010f0| 2b 20 63 72 6c 66 20 2b | 20 22 43 6f 6e 74 65 6e |+ crlf +| "Conten|
|00001100| 74 2d 74 79 70 65 3a 20 | 69 6d 61 67 65 2f 6a 70 |t-type: |image/jp|
|00001110| 65 67 22 20 2b 20 63 72 | 6c 66 20 2b 20 63 72 6c |eg" + cr|lf + crl|
|00001120| 66 04 65 6c 73 65 00 21 | 52 65 6d 20 44 65 66 61 |f.else.!|Rem Defa|
|00001130| 75 6c 74 20 68 65 61 64 | 65 72 20 69 73 20 74 65 |ult head|er is te|
|00001140| 78 74 2f 68 74 6d 6c 2e | 20 8b 02 68 65 61 64 3d |xt/html.| ..head=|
|00001150| 22 48 54 54 50 2f 31 2e | 30 20 32 30 30 20 4f 4b |"HTTP/1.|0 200 OK|
|00001160| 22 20 2b 20 63 72 6c 66 | 20 2b 20 22 53 65 72 76 |" + crlf| + "Serv|
|00001170| 65 72 3a 20 57 65 62 53 | 54 41 52 2f 32 2e 30 20 |er: WebS|TAR/2.0 |
|00001180| 49 44 2f 41 43 47 49 22 | 20 2b 20 63 72 6c 66 20 |ID/ACGI"| + crlf |
|00001190| 2b 20 22 4d 49 4d 45 2d | 56 65 72 73 69 6f 6e 3a |+ "MIME-|Version:|
|000011a0| 20 31 2e 30 22 20 2b 20 | 63 72 6c 66 20 2b 20 22 | 1.0" + |crlf + "|
|000011b0| 43 6f 6e 74 65 6e 74 2d | 74 79 70 65 3a 20 74 65 |Content-|type: te|
|000011c0| 78 74 2f 68 74 6d 6c 22 | 20 2b 20 63 72 6c 66 20 |xt/html"| + crlf |
|000011d0| 2b 20 63 72 6c 66 06 65 | 6e 64 20 69 66 06 65 6e |+ crlf.e|nd if.en|
|000011e0| 64 20 69 66 24 65 76 65 | 6e 74 2e 52 65 70 6c 79 |d if$eve|nt.Reply|
|000011f0| 53 74 72 69 6e 67 3d 68 | 65 61 64 2b 50 72 6f 63 |String=h|ead+Proc|
|00001200| 65 73 73 44 61 74 61 28 | 29 00 06 65 6e 64 20 69 |essData(|)..end i|
|00001210| 66 00 0c 45 6e 64 20 46 | 75 6e 63 74 69 6f 6e 00 |f..End F|unction.|
|00001220| 00 00 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+